package HelloSeries.ui.prefs.elems.flextables.renderer;

import java.awt.Component;

import javax.swing.JCheckBox;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;

public class DefaultSwingRenderer implements TableCellRenderer{
	private TableCellRenderer __defaultRenderer;
	public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
		
		if(value instanceof Component){
			return (Component)value;
		}
		else if (value instanceof Boolean) {
			return new JCheckBox("",new Boolean((Boolean)value));
		}
		return __defaultRenderer.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
		}
}
